package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存成本调整单明细对象 tbl_stock_cost_adjust_sheet_detail
 *
 * @author ruoyi
 * @date 2025-05-06
 */
public class TblStockCostAdjustSheetDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 单据ID */
    @Excel(name = "单据ID")
    private String sheetId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    // 商品信息
    private BaseDataProduct baseDataProduct;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockNum;

    /** 档案采购价 */
    @Excel(name = "档案采购价")
    private BigDecimal purchasePrice;

    /** 调整前成本价 */
    @Excel(name = "调整前成本价")
    private BigDecimal oriPrice;

    /** 调整后成本价 */
    @Excel(name = "调整后成本价")
    private BigDecimal price;

    /** 库存调价差额 */
    @Excel(name = "库存调价差额")
    private BigDecimal diffAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNo;

    public BaseDataProduct getBaseDataProduct() {
        return baseDataProduct;
    }

    public void setBaseDataProduct(BaseDataProduct baseDataProduct) {
        this.baseDataProduct = baseDataProduct;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setSheetId(String sheetId)
    {
        this.sheetId = sheetId;
    }

    public String getSheetId()
    {
        return sheetId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setStockNum(Long stockNum)
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum()
    {
        return stockNum;
    }
    public void setPurchasePrice(BigDecimal purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice()
    {
        return purchasePrice;
    }
    public void setOriPrice(BigDecimal oriPrice)
    {
        this.oriPrice = oriPrice;
    }

    public BigDecimal getOriPrice()
    {
        return oriPrice;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setDiffAmount(BigDecimal diffAmount)
    {
        this.diffAmount = diffAmount;
    }

    public BigDecimal getDiffAmount()
    {
        return diffAmount;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setOrderNo(Long orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sheetId", getSheetId())
            .append("productId", getProductId())
            .append("stockNum", getStockNum())
            .append("purchasePrice", getPurchasePrice())
            .append("oriPrice", getOriPrice())
            .append("price", getPrice())
            .append("diffAmount", getDiffAmount())
            .append("description", getDescription())
            .append("orderNo", getOrderNo())
            .toString();
    }
}
